/** ---权限管理--- */
export const auth = [
  // 角色管理
  {
    path: '/roleList',
    name: 'roleList',
    component: () =>
      import('@/pages/authManagement/roles/roleList.vue'),
    meta: {
      title: '权限管理+角色管理',
      permission: 'roleList.see',
    },
  },
  {
    path: '/roleAdd',
    name: 'roleAdd',
    component: () =>
      import('@/pages/authManagement/roles/roleAdd.vue'),
    meta: {
      title: '权限管理+角色管理+新增',
      permission: 'roleList.add',
    },
  },
  {
    path: '/roleEdit',
    name: 'roleEdit',
    component: () =>
      import('@/pages/authManagement/roles/roleAdd.vue'),
    meta: {
      title: '权限管理+角色管理+修改',
      permission: 'roleList.edit',
    },
  },
  {
    path: '/roleDetail',
    name: 'roleDetail',
    component: () =>
      import('@/pages/authManagement/roles/roleDetail.vue'),
    meta: {
      title: '权限管理+角色管理+详情',
      permission: 'roleList.see',
    },
  },
  // 管理员管理
  {
    path: '/accountList',
    name: 'accountList',
    component: () =>
      import('@/pages/authManagement/accounts/accountList.vue'),
    meta: {
      title: '权限管理+管理员管理',
      permission: 'accountList.see',
    },
  },
  {
    path: '/accountAdd',
    name: 'accountAdd',
    component: () =>
      import('@/pages/authManagement/accounts/accountAdd.vue'),
    meta: {
      title: '权限管理+管理员管理+新增',
      permission: 'accountList.add',
    },
  },
  {
    path: '/accountEdit',
    name: 'accountEdit',
    component: () =>
      import('@/pages/authManagement/accounts/accountAdd.vue'),
    meta: {
      title: '权限管理+管理员管理+修改',
      permission: 'accountList.edit',
    },
  },
]